package com.juzipi.demo.service;

import com.juzipi.demo.mapper.UsersMapper;
import com.juzipi.demo.entity.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersService {

    @Autowired
    private UsersMapper usersMapper;


    public List<Users> queryAllUsers() {

        return usersMapper.selectList(null);
    }
}
